import 'package:flutter/material.dart';
import 'package:s/main.dart';

void main() {
  runApp(MyApp());
}
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
  
}

class MyHomePage extends StatelessWidget{
  // var title;
  //
  // MyHomePage({required Key key,this.title}):super(key: key);
  @override
  Widget build(BuildContext context) {
    return  Scaffold(
      appBar: AppBar(
         title: Text('电影列表'),
          centerTitle: true,
          actions: <Widget>[
          IconButton(icon: Icon(Icons.search),onPressed: () {},)
        ],

      ),
      drawer:Drawer(),
    );
  }
}
